const Router = require("koa-router")
const {BASE_URL}=require('../constants/public')
const articleCategoryRouter=new Router({prefix:`${BASE_URL}/article/category`})

const {
    create,
    update,
    list,
    remove
}=require('../controller/aset.article.category.controller')
const {
    verifyIsEmpty,
    verifyUpdateAC,
    verifyAddAC,
    verifyRemoveAC
} =require('../middleware/empty.midderware')
const {verifyLogin,verifyAuth} = require('../middleware/auth.midderware')

articleCategoryRouter.post('/add',verifyAuth,verifyAddAC,verifyIsEmpty,create)
articleCategoryRouter.post('/update',verifyAuth,verifyUpdateAC,verifyIsEmpty,update)
articleCategoryRouter.post('/list',verifyAuth,list)
articleCategoryRouter.post('/remove',verifyAuth,verifyRemoveAC,verifyIsEmpty,remove)


module.exports=articleCategoryRouter